<script setup>
import { ref } from 'vue'

const count = ref(0)
const props = defineProps(['title', 'subtitle'])
console.log(props.title)
const emit = defineEmits(['enlarge-text'])
const btnClick = () => {
  emit('enlarge-text')
}
</script>

<template>
  <h4>{{ title }}</h4>
  <h5 style="color: antiquewhite">{{ subtitle }}</h5>
  <!-- <slot></slot> -->
  <span>{{ count }}</span>
  <button @click="count++">点 赞</button>
  <button @click="btnClick">字号放大</button>
</template>
